$OpenBSD: patch-configure_in,v 1.32 2014/04/29 22:02:18 zhuk Exp $
--- configure.in.orig	Wed Aug 20 20:05:03 2008
+++ configure.in	Sat Jan 11 16:30:01 2014
@@ -502,7 +502,10 @@ fi
 AC_DEFINE_UNQUOTED(DCOP_PATH, ["${dcop_prefix}/bin"], [Define where your dcop binary is])
 AM_CONFIG_HEADER([dcop/dcop-path.h])
 
-AC_PATH_PROGS(MD5SUM, [md5sum gmd5sum], [md5sum])
+AC_PATH_PROGS(MD5SUM, [md5 md5sum gmd5sum], [md5sum])
+if test "${MD5SUM}" = "md5"; then
+     MD5SUM="${MD5SUM} -r"
+fi
 dnl =======================================================
 dnl FILE: ./dnssd/configure.in.in
 dnl =======================================================
@@ -1145,7 +1148,7 @@ if test "$ac_use_cups" = "yes"; then
   else
     AC_MSG_RESULT(cups-config not found, using default libraries: $kde_cups_libs. You should consider upgrading CUPS)
   fi
-  KDE_CHECK_LIB(cups,cupsServer,[ac_cups_libs=1],[ac_cups_libs=0],[$LIBDL $LIBSOCKET])
+  KDE_CHECK_LIB(cups,cupsServer,[ac_cups_libs=1],[ac_cups_libs=0],[$kde_cups_libs $LIBDL $LIBSOCKET])
   if test "$ac_cups_libs" = "0"; then
     AC_MSG_WARN(CUPS library not found. CUPS support disabled)
     ac_use_cups="no"
@@ -2011,7 +2014,7 @@ dnl ==================================================
        AC_LANG_SAVE
        AC_LANG_C
        dnl Check for aspell library
-       KDE_CHECK_LIB(aspell, new_aspell_config, [LIBASPELL="-laspell"])
+       KDE_CHECK_LIB(aspell, new_aspell_config, [LIBASPELL="-laspell"],, -lstdc++ -lm)
        KDE_CHECK_HEADER(aspell.h)
        if test -z "$ac_cv_header_aspell_h"; then
            echo ""
